package com.key.w8.http1.factory;

/**
 * @Author: k8
 * @CreateTime: 2025-04-27
 * @Version: 1.0
 */
public enum HttpVersion {
    Http1_1, Http1_0;
    public static io.netty.handler.codec.http.HttpVersion getVersion(HttpVersion httpVersion){
        switch (httpVersion){
            case Http1_0:
                return io.netty.handler.codec.http.HttpVersion.HTTP_1_0;
            case Http1_1:
                return io.netty.handler.codec.http.HttpVersion.HTTP_1_1;
            default:
                return io.netty.handler.codec.http.HttpVersion.HTTP_1_1;
        }
    }
}
